Skip to main content

All Questions

Tagged with
0votes
1answer
244views

Disable password login but keep sudo -v?

I'm on a Raspberry Pi, but I don't think this question is specific to Raspberry Pi OS. I only use an SSH key to log in as user pi. I have a script that calls sudo -v which currently asks for the ...
AndreKR's user avatar
  • 1,198
-1votes
1answer
483views

Can I disable password login but still allow sudo?

While answering comments I realized what I should really be asking, so I asked a new question. I'm on a Raspberry Pi, but I don't think this question is specific to Raspberry Pi OS. I only use an SSH ...
AndreKR's user avatar
  • 1,198
1vote
0answers
608views

echo hashed password for sudo command in multi system

I want to make a shell that sends command which runs at sudo level, from a system to multiple system. for example: for system in ${systems[@]}; do ssh $system "echo 'password' | sudo -S yum -...
Lunartist's user avatar
0votes
0answers
714views

Capturing output of sudo commands run over ssh (without password prompt)?

If I run this command, the output is what I expect, listing the directory /root on my server. ~ bash -c "ssh -t myserver 'sudo ls /root'" Enter passphrase for key '/home/james/.ssh/ed25519':...
Stonecraft's user avatar
0votes
1answer
1kviews

pam_ssh_agent_auth: sudo asks for password with ssh user@host, but ssh user@host 'bash' not

I use gpg-agent to manage ssh-agent. On my PC: ssh-add -L prints my public keys which is used on the server. ForwardAgent is open. pam.d/sudo and sudoers are configured. After ssh user@host, echo $...
Vonfry's user avatar
2votes
1answer
3kviews

How to confirm linux root password from ssh root?

How can I check a remote machines root password? I have a remote machines that are normally accessed via ssh root and other users. For security purposes I have a script to change all keys and user ...
dave.zap's user avatar
0votes
1answer
712views

Sudo -i with password inside ssh

I want to write a script to connect to the server, which will increase the privileges. Now I use a script with expect, but I would like to change that. Here is a way by which I try to achieve this: ...
vessd's user avatar
2votes
2answers
716views

Feedback when entering passwords, without revealing length

I often SSH into a machine and use sudo on it. When entering passwords, I'm always afraid that another window will steal the focus. However, I don't want to display asterisks (with pwfeedback, for ...
user avatar
46votes
7answers
164kviews

Can a linux user change their password without knowing the current password?

I'm setting up a few ubuntu boxes, and using opscode's chef as a configuration tool. It would be fairly easy to install public keys for each user on each of these servers, and disable password ...
cwd's user avatar
  • 46.7k

close